using Dream.FirstLevel.Base;
using Light;
using UnityEngine;

namespace Dream.FirstLevel.Implement
{
    //mao 24-11-23 07:12
    //敲键盘的任务
    //到自己电脑启动一个任务，等待固定时候完成后交给领导
    //任务在表现上是交给ai实现的，期间玩家可离开位置去做别的任务
    //超时就会被巡逻的领导发现自己在使用AI工作，扣除点数
    public class ProductA : ProductBase
    {
        /// <summary>
        ///     给Boss调用
        /// </summary>
        public ProductA()
        {
            ResManager.Instance.LoadAsync<Sprite>("ProductA", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 3000;
            scuessPoints = 10;
            failPoints = 10;
        }

        /// <summary>
        ///     给在Worker中进行调用
        /// </summary>
        /// <param name="parentContainer"></param>
        public ProductA(Player.Player parentContainer)
        {
            this.parentContainer = parentContainer;
            ResManager.Instance.LoadAsync<Sprite>("ProductA", o => { _sprite = o; }, LoadType.AddressAbles);
            _waitTime = 3000;
            scuessPoints = 10;
            failPoints = 5;
        }


        public override void Success()
        {
            base.Success();
            Debug.Log("ProductA Success");
        }
    }
}